﻿using System;

namespace BaseballGame
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine(new Solution().CalPoints(new string[] { "5", "-2", "4", "C", "D", "9", "+", "+" }));
        }
    }
}
